package com.niu.wm.service;

import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.data.domain.Pageable;

import com.niu.wm.model.Customer;
import com.niu.wm.model.User;
import com.niu.wm.form.CustomerSearchForm;
import com.niu.wm.vo.CustomerVO;

public interface CustomerService {
	
	Customer load(Long id);
	
	int insert(User user, Customer customer);
        
    int update(User user, Customer customer);
    
    int delete(User user, Long id);
    
    int countCustomer(CustomerSearchForm form);

	List<CustomerVO> queryCustomer(CustomerSearchForm form, Pageable pageable);
}
